package example.springboot.service.serviceImp;

import example.springboot.mapper.questionListMapper;
import example.springboot.model.Question;
import example.springboot.service.questionlist;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;

//@Service
//public class questionlistImpl implements questionlist{
//    @Autowired
//    example.springboot.mapper.questionListMapper questionListMapper;
//    @Override
//    public Page<Question> find(Integer page, Integer size) {
//        if (page==null){
//            page=0;
//        }
//        if (size=null){
//            size=10;
//        }
//        PageRequest updateTime = PageRequest.of(page, size, Sort.Direction.DESC, "updateTime");
//                questionListMapper.select(updateTime);
//        return ;
//    }
//}
